<div  class="<?php echo ($this->isUserLogedIn() ? 'grid_12 alpha' : 'grid_16 alpha omega')?>" id="content">
    <form method="post" action="./photo/edit/gallery/<?php echo $_REQUEST['request']['arg'];?>/">
        <?php
        if($this->getPhotoService() != null){
            $photo = $this->photoService->getById($_POST['selectedPhotoId']);
            if($photo != null){?>

        <input type="hidden" name="photo_id" value="<?php echo $photo->id; ?>" />
        <div class="grid_12 omega alpha">
            <lable>Nuotrauka:</lable>
            <img  alt="" src="<?php echo $photo->mini; ?>"/>
        </div>
        <div class="grid_12 omega alpha">
            <lable>Nuotrauka pavadinimas:</lable>
            <input type="text" name="title" value="<?php echo $photo->title ;?>"/>
        </div>
        <div class="grid_12 omega alpha">
            <lable>Nuotrauka aprašimas:</lable>
            <textarea name="description" ><?php echo $photo->description ;?></textarea>
        </div>
        <?php }} ?>
        <div class="grid_12 omega alpha">
            <input type="submit" name="editPhoto" value="redaguoti">
        </div>
    </form>
</div>